package com.qf.first.service.impl;

import com.qf.first.dao.OrderMapper;
import com.qf.first.entity.Order;
import com.qf.first.entity.User;
import com.qf.first.pojo.vo.OrderVo;
import com.qf.first.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;
    @Override
    public  List<OrderVo> selectOrderByUserId(Order order) {
        List<OrderVo> orderVos = orderMapper.selectOrderByUserId(order);
        return orderVos;
    }

    @Override
    public int updateOrder(Order order) {
        int i = orderMapper.updateOrder(order);
        return i;
    }

}
